﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cashier_Model
{
    [Table(Tablename="payments")]
    public class Payments: BaseModel
    {
        private Int64 id;

        [Table(Columnname="id", Columntype="bigint", Iskey=true, Iscondition=true, Fieldothername="p", Isdeletefield=true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String enterpriseNo;

        [Table(Columnname = "enterprise_no", Columntype = "varchar", Iscondition = true, Fieldothername = "p", Isdeletefield = true)]
        public String EnterpriseNo
        {
            get { return enterpriseNo; }
            set { enterpriseNo = value; }
        }

        private String storeNo;

        [Table(Columnname = "store_no", Columntype = "varchar", Iscondition = true, Fieldothername = "p")]
        public String StoreNo
        {
            get { return storeNo; }
            set { storeNo = value; }
        }

        private Int64 paymentsSortid;

        [Table(Columnname = "payments_sortid", Columntype = "bigint", Iscondition = true, Fieldothername = "p", Isupdatefield = true)]
        public Int64 PaymentsSortid
        {
            get { return paymentsSortid; }
            set { paymentsSortid = value; }
        }

        private String paymentsName;

        [Table(Columnname="payments_name", Columntype="varchar", Isinsertfield=false)]
        public String PaymentsName
        {
            get { return paymentsName; }
            set { paymentsName = value; }
        }

        private Int32 paymentsType;

        [Table(Columnname = "payments_type", Columntype = "int", Iscondition = true, Fieldothername = "s", Isinsertfield = false)]
        public Int32 PaymentsType
        {
            get { return paymentsType; }
            set { paymentsType = value; }
        }

        private String business;

        [Table(Columnname="business", Columntype="varchar", Isupdatefield=true)]
        public String Business
        {
            get { return business; }
            set { business = value; }
        }

        private Decimal amount;

        [Table(Columnname="amount", Columntype="decimal", Isupdatefield=true)]
        public Decimal Amount
        {
            get { return amount; }
            set { amount = value; }
        }

        private DateTime paymentsTime;

        [Table(Columnname="payments_time", Columntype="datetime")]
        public DateTime PaymentsTime
        {
            get { return paymentsTime; }
            set { paymentsTime = value; }
        }

        private String note;

        [Table(Columnname = "note", Columntype = "varchar", Isupdatefield=true)]
        public String Note
        {
            get { return note; }
            set { note = value; }
        }

        private String adminUsername;

        [Table(Columnname = "admin_username", Columntype = "varchar", Iscondition = true)]
        public String AdminUsername
        {
            get { return adminUsername; }
            set { adminUsername = value; }
        }

        private String adminName;

        [Table(Columnname = "admin_name", Columntype = "varchar", Iscondition = true)]
        public String AdminName
        {
            get { return adminName; }
            set { adminName = value; }
        }

        private DateTime createtime;

        [Table(Columnname = "createtime", Columntype = "datetime")]
        public DateTime Createtime
        {
            get { return createtime; }
            set { createtime = value; }
        }

        private String startDate;

        public String StartDate
        {
            get { return startDate; }
            set { startDate = value; }
        }

        private String endDate;

        public String EndDate
        {
            get { return endDate; }
            set { endDate = value; }
        }
    }
}
